package com.saianfu.flowable.demo.common

import org.flowable.engine.*
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Component

/**
 * activiti引擎注入封装
 *
 */
@Component
open class ServiceFactory {
    @Autowired
    protected var repositoryService: RepositoryService? = null

    @Autowired
    protected var runtimeService: RuntimeService? = null

    @Autowired
    protected var identityService: IdentityService? = null

    @Autowired
    protected var taskService: TaskService? = null

    @Autowired
    protected var formService: FormService? = null

    @Autowired
    protected var historyService: HistoryService? = null

    @Autowired
    protected var managementService: ManagementService? = null

    @Qualifier("processEngine")
    @Autowired
    protected var processEngine: ProcessEngine? = null
}